<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="聊天室,视频聊天室,随机聊天,聊天轮盘,免费随机聊天,随机视频聊天,51liao,51聊"/>
<meta name="description" content="人海中的邂逅,聊天的首选!51聊是最有趣的视频聊天,永远可以选择下一个!有视频有文字,有惊喜,更精彩!全部免费,游客随意进！有你必精彩!"/>
<title>聊天轮盘 - 文章列表</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/addin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
img { behavior: url(img/iepngfix.htc); }
.error {color: red;}
.articletitle {font-size: 12px;padding-top: 3px;}
</style>
<script type="text/javascript" src="js/feedback.js"></script>
</head>
<body onload="initWeb()">
<div class="head">
  <div class="head_center">
<div class="logobox"><img src="img/logo&title.png" alt="聊天轮盘" /></div>
  </div>
</div>
<div class="main">
<div class="middle">
  <div id=registBox>
    <div id=container>
      <div id="title">文章列表</div>
      <div id="infoBox">
		<ul style="float:left; padding-left:28px;">
		<c:forEach var="news" items="${newsList}">
		<li class="articletitle">[${fn:substring(news.articleTime, 0, 8) }] &nbsp;
		<a href="article/${news.articlePath }" target="_blank">${news.articleName }</a></li>
		</c:forEach>
		</ul>
      </div>
      <div id="pageBox" style="padding:5px 0 10px 25px;clear: both;font-size: 14px;">
      <c:choose>
      <c:when test="${pageNo > 1}">
      	<a href="article?type=${type }&s=${pageSize }&p=${pageNo-1 }">上一页</a>
      </c:when>
      <c:otherwise>
      	<a href="javascript:alert('没有上一页了!');">上一页</a>
      </c:otherwise>
      </c:choose>
      <c:choose>
      <c:when test="${pageNo < allPage}">
      	<a href="article?type=${type }&s=${pageSize }&p=${pageNo+1 }">下一页</a>
      </c:when>
      <c:otherwise>
      	<a href="javascript:alert('没有下一页了!');">下一页</a>
      </c:otherwise>
      </c:choose>
      </div>
    </div>
    <div id=myAlpha></div>
  </div>
</div>  
</div>
<div class="bottom_back">
<%@ include file="footer.jsp" %>
</div>
</body>
</html>
